﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Entity
{
    /// <summary>
    /// Base interface for tag collections.
    /// </summary>
    public interface ITagCollection
    {
       
        int MaxItem
        {
            get;
            set;
        }
    }

   public interface ITagCollection<TKey,TValue>:IDictionary<TKey,TValue>,ITagCollection
    {
    }

   public class TagCollection<TKey, TValue> : SortedDictionary<TKey, TValue>, ITagCollection<TKey, TValue>
   {
       #region ITagCollection Members

       private int _maxItem;
       public int MaxItem
       {
           get
           {
               return _maxItem;
           }
           set
           {
               _maxItem=value;
           }
       }

       #endregion
   }
}
